<%-- 
    Document   : ReviewerList
    Created on : Dec 7, 2012, 10:52:29 PM
    Author     : eichawsan
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link href="<c:url value='/css/jquery-ui-1.9.2.custom.min.css' />" rel="stylesheet" type="text/css" />
        <title>Participate</title>
        <script type="text/javascript" src="<c:url value='/scripts/jquery.js' />" ></script>
        <script type="text/javascript" src="<c:url value='/scripts/jquery-ui-1.9.2.custom.min.js' />" ></script>
        <script>    
            $(document).ready(function(){              
                $("#participatebtn").button();
                $("#cancelbtn").button();
            });
            
        </script>
        <link href="<c:url value='/css/global.css'/>" rel="stylesheet" type="text/css"/>
        <link href="<c:url value='/css/tablecss.css'/>" rel="stylesheet" type="text/css"/>
    </head>
    <body class="body">

        <div class="globalTb">
            <div class="headertext1">  
                Assign Reviewer
            </div>
        </div>
        <br><br><br>
        <div class="maindiv">

            <div class="globalTb">
                <s:form namespace="/review" action="processAssign_%{conferenceName}_%{ItemName}" theme="simple">
                    <fieldset>
                        <legend class="mainLegend">Conference Item Details</legend>
                        <table>
                            <tr>
                                <td><b>Conference Name: </b>
                                 <br />Item Name :
                                </td>
                                <td>
                                    <s:property value="conferenceName"/> <br />
                                    <s:property value="itemName"/>
                                </td>
                                <s:if test="itemType == 'Paper Presentation'"><td></td> </s:if>
                            </tr>
                            <tr>
                                <th>Reviewer1</th>
                                <th>Reviewer2</th>
                                <s:if test="itemType == 'Paper Presentation'">
                                <th>Reviewer3</th>
                                </s:if>
                            </tr>
                            <tr>
                                <td>
                                    <select name="review1" id="review1">
                                        <s:iterator value="reviewerList">
                                            <option value="<s:property value="userName" />"><s:property value="userName" /></option>
                                        </s:iterator>
                                    </select>
                                </td>
                                <td>
                                   <select name="review1" id="review2">
                                        <s:iterator value="reviewerList">
                                            <option value="<s:property value="userName" />"><s:property value="userName" /></option>
                                        </s:iterator>
                                    </select>  
                                </td>   
                                <s:if test="itemType == 'Paper Presentation'">
                                <td>
                                   <select name="review1" id="review3">
                                        <s:iterator value="reviewerList">
                                            <option value="<s:property value="userName" />"><s:property value="userName" /></option>
                                        </s:iterator>
                                    </select>
                                </td> 
                                </s:if>
                            </tr>
                        </table>
                    </fieldset>
                    <br/>
                    <input type="submit" id="participatebtn" value="Save"/>
                    <a id="cancelbtn" href="<s:url namespace='/member' action='list' />"><b>Cancel</b></a><br/><br/>
                </s:form>
            </div>
        </div>  
    </body>
</html>

